import {Provider} from "../base";
import {ethers} from 'ethers';
import Config from '@/assets/js/config/load';
const config = Config();

let abi = config.fomo.lastAbi;
let contractAddress = config.fomo.lastAddress;
let provider = Provider.ETSC;
let contract = new ethers.Contract(contractAddress, abi, provider);


export async function lastAward_(lID, pID) {
    return await contract.lastAward_(lID, pID);
}